﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CricketAdmin.master" AutoEventWireup="true"
    CodeFile="Dashboard.aspx.cs" Inherits="Dashboard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container-fluid">
        <%--Upcoming Matched Start--%>
        <h3 class="page-title">
            Upcoming Matches<small></small>
        </h3>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-globe"></i>Upcoming Matches</div>
                        <div class="tools">
                            <a href="javascript:;" class="collapse"></a><a href="#portlet-config" data-toggle="modal"
                                class="config"></a><a href="javascript:;" class="reload"></a><a href="javascript:;"
                                    class="remove"></a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div id="divRed" runat="server">
                        </div>
                        <div id="divGreen" runat="server">
                        </div>
                        <table class="table table-striped table-hover table-bordered" id="sample_editable_1">
                            <thead>
                                <tr>
                                    <th>
                                        Team 1
                                    </th>
                                    <th>
                                        Team 2
                                    </th>
                                    <th>
                                        Match Type
                                    </th>
                                    <th>
                                        Date
                                    </th>
                                    <th>
                                        Time
                                    </th>
                                    <th>
                                        Betting
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rptMatch" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblTeam1" runat="server" Text='<%# Eval("Team1") %>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTeam2" runat="server" Text='<%#Eval("Team2") %>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblMatchType" runat="server" Text='<%#Eval("Type") %>'></asp:Label>
                                            </td>
                                            <td class="center">
                                                <asp:Label ID="lblDate" runat="server" Text='<%#Eval("Date", "{0:dd/M/yyyy}") %>'></asp:Label>
                                            </td>
                                            <td class="center">
                                                <asp:Label ID="lblTime" runat="server" Text='<%#Eval("Time") %>'></asp:Label>
                                            </td>
                                            <td>
                                                <a href='AddBetting.aspx?Id=<%#Eval("Id") %>'>Betting</a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <%--Upcoming Matches End--%>
        <h3 class="page-title">
            Top Clients<small></small>
        </h3>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-globe"></i>Top Clients</div>
                        <div class="tools">
                            <a href="javascript:;" class="collapse"></a><a href="#portlet-config" data-toggle="modal"
                                class="config"></a><a href="javascript:;" class="reload"></a><a href="javascript:;"
                                    class="remove"></a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <table class="table table-striped table-hover table-bordered" id="Table1">
                            <thead>
                                <tr>
                                    <th>
                                        Admin
                                    </th>
                                    <%--<th>
                                        Client Name
                                    </th>--%>
                                    <th>
                                        Limit
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rptClient" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <%--<td>
                                                <asp:Label ID="lblAdmin" runat="server" Text='<%# Eval("AdminFullName") %>'></asp:Label>
                                            </td>--%>
                                            <td>
                                                <asp:Label ID="lblTeam1" runat="server" Text='<%# Eval("FullName") %>'></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTeam2" runat="server" Text='<%#Eval("ActualLimit") %>'></asp:Label>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
